Skip to content

Log in to Postman CLI on every Codespace start - #12

Merged
Gbahdeyboh merged 1 commit into
mainfrom
headless-demo
Nov 18, 2026
Merged

Gbahdeyboh merged 1 commit into
mainfrom
headless-demo

Conversation

@Gbahdeyboh

Copy link
Copy Markdown
Contributor

Summary

  • Moves the Postman login out of post-create.sh into .devcontainer/postman-login.sh, run via postStartCommand, so the CLI is logged in on every Codespace start, including restarts.
  • The script runs postman login --with-api-key "$POSTMAN_API_KEY" and shows the real error if login fails.

Setup

Add POSTMAN_API_KEY as a Codespaces secret with access to this repo. If it is missing, the script prints a message and the user can log in manually.

Testing

Not yet run in a Codespace. Both scripts pass bash -n, and postman-login.sh prints the expected message when the key is unset.

Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
@Gbahdeyboh
Gbahdeyboh merged commit 1e91268 into main Nov 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant